# -*- coding: utf-8 -*-
from flask_debugtoolbar import DebugToolbarExtension
from controllers.member import member_page
from controllers.index import index_page
from common.libs.UrlManager import UrlManager

from interceptors.Auth import *
from interceptors.errorHandler import *
from application import app

toolbar = DebugToolbarExtension(app)

app.register_blueprint(index_page, url_prefix="/")
app.register_blueprint(member_page, url_prefix="/member")

app.add_template_global(UrlManager.buildStaticUrl, 'buildStaticUrl')
app.add_template_global(UrlManager.buildUrl, 'buildUrl')
